package com.example.saiweisi.mapper.userMapper;

import com.example.saiweisi.controller.request.UserLoginRequest;
import com.example.saiweisi.model.User;
import com.example.saiweisi.model.UserMail;
import com.example.saiweisi.model.Validation;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    User login(UserLoginRequest request);

    UserMail loginByEmail(UserLoginRequest request);

    List<User> getAllUser();

    void addUser(User user);

    void save(Validation validation);

    int getuserNum(Integer userNum);

    int getuserByuserNumAndemail(String email, Integer userNum);

    void updatePassword(long userNum, String userPassword);

    void saveUserInfo(User user);

    void updateEmail(UserLoginRequest request);

    void addUser001(User user);

    int searchByuserNum(String userNum);

    int getUserIdByOrderId(long orderId);

    String getEmailByUserId(int userId);
}
